/* Alles auf Null setzen */

/* ----------------------------------
	Header
   ---------------------------------- */

.sticky-header {
    position: fixed; /* Fixed sorgt dafür, dass er immer oben bleibt */
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height); /* Feste Höhe für den Header */
    background: #0000ff;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    z-index: 500;
}

.logo img {
	height: 60px;
	width: auto;
}

/* ----------------------------------
	Menü
   ---------------------------------- */

/* Menü-Overlay */
.menu-overlay {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    
    /* Animationseinstellungen */
    max-height: 0;              /* Startwert: unsichtbar */
    overflow: hidden;           /* WICHTIG: Schneidet den Inhalt ab, wenn max-height 0 ist */
    transition: max-height 1.0s ease, opacity 01.0s ease, visibility 1.0s;
    
    /* Verhindert Klicks auf das geschlossene Menü */
    visibility: hidden;
	color: white;
    
    background-color: #5a5eff;
    z-index: 515;
	scrollbar-width: none;
	pointer-event: auto;
}

.menu-overlay.active {
    max-height: calc(100vh - var(--header-height));
    opacity: 1;
    visibility: visible;
    overflow-y: auto;
}

.menu-overlay.is-open {
    max-height: 100vh;          /* Endwert: volle Bildschirmhöhe */
    visibility: visible;        /* Sichtbar machen */
}

/* Restliches Design */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px; padding: 20px; padding-bottom:50px;
}

.menu-col h3 { border-bottom: 1px solid #ddd; padding-bottom: 5px; margin-bottom: 10px; color: #ffffff;}

.menu-col .accordion summary,
.menu-col .accordion a {
    transition: font-size 0.15s ease;
	font-size: 1rem;
}

.menu-col .accordion summary:hover,
.menu-col .accordion a:hover {
    font-size: 1.15rem;
}

.menu-overlay a { 
	color: #ddd; 
	text-decoration: none; 
	display: block; 
	padding: 5px 0; 
	}
	
.menu-overlay summary { cursor: pointer; /*font-weight: bold;*/ 
}

.menu-col .accordion {
	margin: 7px 0;
}

.menu-col .submenu {
	margin: 7px 0;			
}
/* --- 2. Das Menü (Listen-Layout Fix) --- */
.menu-overlay ul {
    list-style: none;    /* Entfernt die Aufzählungspunkte */
    padding-left: 15px;     /* Entfernt den Einzug */
    margin: 10px 0;      /* Abstand nach oben/unten */
}

.menu-overlay li {
    list-style: none;    /* Entfernt die Aufzählungspunkte */
    padding: 0px 10px;      /* Vertikaler Abstand zwischen Links */
	
/*    border-bottom: 1px solid #555; /* Trennlinie */
}

.menu-overlay a {
    text-decoration: none;
    color: white;
    display: block;      /* Macht den ganzen Bereich klickbar */
}

/* --- 1. Der Hamburger (Animation Fix) --- */
.hamburger {
    width: 30px;
    height: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 520;
    padding: 0;
	touch-aciton: manipulation;
	user-select: none;
}

.bar {
    width: 100%;
    height: 3px;
    background-color: white !important; /* Farbe bleibt erzwungen */
    display: block;
    transition: transform 0.3s ease, opacity 0.3s ease; /* Übergang für Animation */
    border-radius: 2px;
}

/* Transformation zum X */
.hamburger.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* ----------------------------------
	Das Hamburger Menü
   ---------------------------------- */

/* Damit der Link genauso aussieht wie die Überschrift der Akkordeons */
.simple-link {
    display: block;
    padding: 10px; /* An dein Design anpassen */
    text-decoration: none;
    color: inherit; /* Oder deine Wunschfarbe */
}

.simple-link:hover {
/*    color: #ebebff;  Oder dein Hover-Design */
	font-size: 1.15rem;
	}

.anker-ziel {
	scroll-margin-top: 60 px;
}

